<?php

if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
	exit('Access Denied');
}

$sql = <<<EOF

DROP TABLE IF EXISTS pre_er_filedset;
DROP TABLE IF EXISTS pre_er_filedset_config;

EOF;

runquery($sql);

/* 删除文件 */
$identifier = 'erling_filedset';
if(!function_exists('cloudaddons_deltree')) require libfile('function/cloudaddons');
cloudaddons_deltree(DISCUZ_ROOT .'./source/plugin/'.$identifier.'/');
/* 删除文件 */

$finish = TRUE;